import request from '@/utils/request'

let OfficiaApi = {
  /*咨询列表*/
  getList(data, errorback) {
    return request._post('/shop/news.news/lists', data, errorback);
  },
  /*删除咨询*/
  del_item(data, errorback) {
    return request._post('/shop/news.news/del', data, errorback);
  },
  /*添加咨询*/
  add_item(data, errorback) {
    return request._post('/shop/news.news/add', data, errorback);
  },
  /*修改咨询*/
  edit_item(data, errorback) {
    return request._post('/shop/news.news/edit?id=' + data.id, data, errorback);
  },



  /*修改咨询*/
  get_about_us(data, errorback) {
    return request._get('/shop/news.pages/index', data, errorback);
  },
  set_about_us(data, errorback) {
    return request._post('/shop/news.pages/index', data, errorback);
  },


  /*推广分类*/
  type_lists(data, errorback) {
    return request._post('/shop/news.plugs/type_lists', data, errorback);
  },
  type_add(data, errorback) {
    return request._post('/shop/news.plugs/tadd', data, errorback);
  },
  type_edit(data, errorback) {
    return request._post('/shop/news.plugs/tedit', data, errorback);
  },
  type_info(data, errorback) {
    return request._get('/shop/news.plugs/tedit', data, errorback);
  },
  type_del(data, errorback) {
    return request._get('/shop/news.plugs/tdel', data, errorback);
  },

  type_index(data, errorback) {
    return request._get('/shop/news.plugs/type_index', data, errorback);
  },


  /*推广*/
  plugs_lists(data, errorback) {
    return request._post('/shop/news.plugs/lists', data, errorback);
  },
  plugs_add(data, errorback) {
    return request._post('/shop/news.plugs/add', data, errorback);
  },
  plugs_edit(data, errorback) {
    return request._post('/shop/news.plugs/edit', data, errorback);
  },
  plugs_info(data, errorback) {
    return request._get('/shop/news.plugs/edit', data, errorback);
  },
  plugs_del(data, errorback) {
    return request._get('/shop/news.plugs/del', data, errorback);
  },










}
export default OfficiaApi;
